package com.tchy.cloud.entity;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created by xiaoji on 2017/2/20.
 */
@Entity
@Table(name = "a_customer_coupon", schema = "", catalog = "")
public class ACustomerCouponEntity {
    private Long couponId;
    private String couponLogo;
    private String couponNo;
    private Date validityTime;
    private Integer couponValue;
    private String couponDesc;
    private Long templateId;
    private Integer conditional;
    private Byte isUse;
    private Date createTime;
    private long customerId;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "coupon_id")
    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    @Basic
    @Column(name = "coupon_logo")
    public String getCouponLogo() {
        return couponLogo;
    }

    public void setCouponLogo(String couponLogo) {
        this.couponLogo = couponLogo;
    }

    @Basic
    @Column(name = "coupon_no")
    public String getCouponNo() {
        return couponNo;
    }

    public void setCouponNo(String couponNo) {
        this.couponNo = couponNo;
    }

    @Basic
    @Column(name = "validity_time")
    public Date getValidityTime() {
        return validityTime;
    }

    public void setValidityTime(Date validityTime) {
        this.validityTime = validityTime;
    }

    @Basic
    @Column(name = "coupon_value")
    public Integer getCouponValue() {
        return couponValue;
    }

    public void setCouponValue(Integer couponValue) {
        this.couponValue = couponValue;
    }

    @Basic
    @Column(name = "coupon_desc")
    public String getCouponDesc() {
        return couponDesc;
    }

    public void setCouponDesc(String couponDesc) {
        this.couponDesc = couponDesc;
    }

    @Basic
    @Column(name = "template_id")
    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    @Basic
    @Column(name = "conditional")
    public Integer getConditional() {
        return conditional;
    }

    public void setConditional(Integer conditional) {
        this.conditional = conditional;
    }

    @Basic
    @Column(name = "is_use")
    public Byte getIsUse() {
        return isUse;
    }

    public void setIsUse(Byte isUse) {
        this.isUse = isUse;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "customer_id")
    public long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(long customerId) {
        this.customerId = customerId;
    }
}
